package com.sc.springboot.pojo;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import java.util.Date;
import lombok.Getter;
import lombok.Setter;

/**
 * <p>
 * 帖子点赞记录表
 * </p>
 *
 * @author romeo
 * @since 2025-09-25 03:43:31
 */
@Getter
@Setter
@TableName("post_like")
public class PostLike {

    /**
     * 点赞记录ID
     */
    @TableId(value = "like_id", type = IdType.AUTO)
    private Integer likeId;

    /**
     * 用户ID
     */
    @TableField("user_id")
    private Integer userId;

    /**
     * 帖子ID
     */
    @TableField("post_id")
    private Integer postId;

    /**
     * 点赞状态：1-点赞，0-取消
     */
    @TableField("status")
    private Boolean status;

    /**
     * 创建时间
     */
    @TableField("created_at")
    private Date createdAt;

    /**
     * 更新时间
     */
    @TableField("updated_at")
    private Date updatedAt;
}
